/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.dusin.weijiwufang.ui.action;

import com.mxgraph.swing.util.mxSwingConstants;
import com.mxgraph.util.mxConstants;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;
import org.dusin.weijiwufang.service.VisitorService;
import org.dusin.wufang.graph.swing.GraphEditor;
import org.dusin.wufang.graph.swing.editor.EditorMenuBar;

/**
 *
 * @author dusin
 */
public class DrawAction implements ActionListener{

    public DrawAction(JTabbedPane tabbedPane, VisitorService visitorService) {
        
    }

    @Override
    public void actionPerformed(ActionEvent ae) {
        try
		{
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch (Exception e1)
		{
			e1.printStackTrace();
		}

		mxSwingConstants.SHADOW_COLOR = Color.LIGHT_GRAY;
		mxConstants.W3C_SHADOWCOLOR = "#D3D3D3";

		GraphEditor editor = new GraphEditor();
		editor.createFrame(new EditorMenuBar(editor)).setVisible(true);
    }
    
}
